<?php
if(!session_id()) { session_start(); }
include_once('../classes/stock.class.php');
if(!isset($_POST['name']) || !isset($_POST['price'])) {
	return 0;
	//0 means false
}
$stock = new Stock();
return $stock->AddStock($_POST['name'], $_POST['price'])
?>